﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Shop
{
    public partial class DefaultPage2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            #region 处理授权界面、根据code 获取操作用户信息
            string code = Request["code"];//授权信息
            string openid = Common.HandleWx.getOpenId(code);//获取授权界面的code
            var getvalue = Common.HandleCookie.GetCookieValue("openid");
            if (getvalue.Length > 0) Common.HandleCookie.ClearCookie("openid");
            Common.HandleCookie.SetCookie("openid", openid);//["openid"] = openid;
            #endregion 处理授权界面、根据code 获取操作用户信息

            Response.Redirect(".//wangpin0919//register.html");
        }
    }
}